DXL #ifndef equivalent

Hello, all. I am writing a DXL program called MarkObjectsForPublish.dxl This program includes (#include) the file "Common.inc" All of the programs I've written that include Common make use of Logging, so Common.inc includes "Log.dxl". My MorkObjectsForPublish program includes "XmlIO.inc" as well. The problem here is that XmlIo also includes Log.dxl. So, when I attempt to execute MarkObjectsForPublish, I end up with an error that says my variable, cout, which is defined in Log.dxl, is already declared in this scope. So, basically what I need is something like the C++ #ifndef statement. Log.dxl is being interpreted by the DOORS compiler twice, and it does not like it. What should I do? Thanks, all.


woodpryan - Mon Sep 23 12:54:53 EDT 2013

Re: DXL #ifndef equivalent
MichaelGeorg - Tue Sep 24 05:40:15 EDT 2013

Sorry, but I don't think this is possible. See also: https://www.ibm.com/developerworks/community/forums/html/topic?id=77777777-0000-0000-0000-000014243238

 - Michael

Re: DXL #ifndef equivalent
woodpryan - Tue Sep 24 09:19:44 EDT 2013

MichaelGeorg - Tue Sep 24 05:40:15 EDT 2013

Sorry, but I don't think this is possible. See also: https://www.ibm.com/developerworks/community/forums/html/topic?id=77777777-0000-0000-0000-000014243238

 - Michael

Thanks, Michael. Now and then I run across things that cannot be done in DXL. Sometimes, those things really just astound me. This is one of those. Thanks for your help.